package com.wm.blog_admin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wm.blog_admin.query.TBlogQuery;
import com.wm.blog_common.domain.TBlogDO;
import com.wm.blog_common.entity.TBlog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 博客表 Mapper 接口
 * </p>
 *
 * @author wm_yu
 * @since 2020-03-24
 */
public interface TBlogMapper extends BaseMapper<TBlog> {

    List<TBlogDO> blogSortPie(@Param("query") TBlogQuery query);

    int clickCount(@Param("query") TBlogQuery query);

    List<TBlogDO> weekActive(@Param("query") TBlogQuery query);

}
